package com.example.blog.ws.pojo;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@Data
public class ChatMessageSingle implements Serializable {
        @TableId(type = IdType.AUTO)
        public Integer id;
        public String fromUserId;
        public String receiveUserId;

        public String messageType;

        public String name;

        public String headerUrl;

        public String message;

        @JSONField(format="yyyy-MM-dd HH:mm:ss")
        public Date date;

}
